<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="lib/vue.js"></script>
</head>
<body>
<div id="app">
    <div @click="divclick">
        aaaaaaaaaaaaaa
        <button @click.stop="btnclick">点击我</button> <!--阻止冒泡事件-->
        <!--.prevent阻止默认事件-->
    </div>
    <button @click="btn(111)"></button>
</div>
<script>
    let app = new Vue({
        el:'#app',
        methods:{
            btn(id){console.log(id)},
            divclick(){console.log('divclick')},
            btnclick(){console.log('btnclick')}
        }
    })
</script>
</body>
</html>
